import React from 'react'
import { Link, NavLink } from 'umi'
import { history } from 'umi'
import './index.less'
const index = (props: any) => {
  return (
    <div>
      <h2>Header</h2>
      <NavLink to="/user/one">用户一</NavLink>
      <NavLink to="/user/two">用户二</NavLink>
      {/* props.children  相当于 Vue中的solt */}
      {props.children}

      <h2>Footer</h2>
    </div>
  )
}

export default index
